package com.jackson.passjava.member.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.boot.context.properties.ConfigurationPropertiesScan;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.stereotype.Component;

/**
 * @application:
 * @author: LiYuhang
 * @Date: 2021/8/17 21:51
 * @version: 0.1
 * @Description :
 * @Modified By:
 */
@Component
@ConfigurationProperties(prefix = "my.config.member")
@RefreshScope
public class MemberConstant {
    private  String nickname;
    private  Integer age;

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }
}
